Piwik\Url D

Total Complexity 140
Dependencies 10
Dependents 79
Total lines 780
Lines of code 410
Logical lines of code 227
Comment lines 234
Methods 41
Properties 0

Methods 41

Method Rating Maintainability Complexity Lines of code
getCurrentScriptName()
A
46 16 38
getCurrentSchemeFromRequestHeader()
A
56 12 18
isValidHost()
A
47 10 35
isLocalUrl()
A
54 8 19
isHostInUrls()
S
55 7 21
getQueryStringFromParameters()
S
56 6 17
getHostFromServerNameVar()
S
59 6 14
getHostFromServerVariable()
S
60 6 13
saveHostsnameInConfig()
S
56 5 20
getHost()
S
63 5 10
redirectToUrlNoExit()
S
58 4 15
getCurrentHost()
S
60 4 13
isSecureConnectionAssumedByPiwikButNotForcedYet()
S
67 4 8
getHostsFromConfig()
S
63 3 11
isLocalHost()
S
62 3 11
getCurrentQueryStringWithParametersModified()
S
62 3 11
getTrustedHostsFromConfig()
S
65 3 9
getCurrentQueryString()
S
64 3 10
getHostFromUrl()
S
64 3 10
redirectToHttps()
S
67 2 8
getHostSanitized()
S
70 2 6
getReferrer()
S
71 2 6
redirectToReferrer()
S
69 2 7
getCurrentScheme()
S
72 2 6
getCurrentScriptPath()
S
64 2 9
getRFCValidHostname()
S
70 2 6
redirectToUrl()
S
74 1 5
isPiwikConfiguredToAssumeSecureConnection()
S
75 1 4
isSecureConnectionLikelyNotUsed()
S
79 1 3
getCurrentUrlWithoutFileName()
S
73 1 5
getLocalHostnames()
S
76 1 3
getAlwaysTrustedHosts()
S
80 1 3
saveTrustedHostnameInConfig()
S
78 1 3
getCurrentUrlWithoutQueryString()
S
72 1 5
saveCORSHostnameInConfig()
S
78 1 3
getCorsHostsFromConfig()
S
78 1 3
getTrustedHosts()
S
80 1 3
setHost()
S
72 1 5
getArrayFromCurrentQueryString()
S
73 1 5
getQueryStringFromUrl()
S
79 1 3
getCurrentUrl()
S
71 1 6